package com.sefer.dragonfly.client.core.helper;

import static com.sefer.dragonfly.client.constants.Constants.MBEAN_OBJECT_NAME_MONITOR;

import org.apache.commons.lang.ClassUtils;

/**
 * mbean 处理类
 * 
 * @author xiaofeng 2011-9-9 上午10:00:50
 */
public class MbeanHelper {

	@SuppressWarnings("unchecked")
	public static String getStrObjectName(Class clazz) {
		if (clazz == null) {
			return null;
		}
		return MBEAN_OBJECT_NAME_MONITOR
				+ ClassUtils.getShortClassName(clazz.getName());
	}
}
